package Framework.IntroScreens  
{
	import Framework.BaseEventHandler;
	import Framework.BaseGui;
	import Framework.GuiElements.Button;
	
	/**
	 * ...
	 * @author Menno
	 */
	public class BaseMenu extends BaseGui
	{
		protected var buttons:Array;
		
		public function BaseMenu() 
		{
			type = "MENU";
			buttons = new Array();
		}
		
		protected function addButton(name:String):Button
		{			
			var buttonHeight:int = 30;
			var buttonWidth:int = 100;
			var ySpacing:int = 10;
			var buttonNr:int = buttons.length;
			var startY:int = 300 + buttonHeight * buttonNr + ySpacing * buttonNr;
			var startX:int = 350;
			
			var button:Button = new Button(name, buttonWidth, buttonHeight, startX, startY);
			
			buttons.push(button);
			return button;
		}
	}
	
}